//
//  common_macro.h
//  中药香
//
//  Created by qq q on 2017/3/10.
//  Copyright © 2017年 金拇指集团. All rights reserved.
//

#define IOS8 ([[[UIDevice currentDevice] systemVersion] intValue ] >= 8)

#define WXPay @"WXPay"
#define Alipay @"Alipay"

#define SundRayID @"jmz123"

#define param_ssid @"ssid"  //WiFi的ssid
#define param_pwd @"pwd"    //WiFi的密码
#define param_security @"security"  //WiFi的加密方式
#define param_strPoiont @"strPoint" //坐标位置

#define param_point @"point"   //坐标
#define param_strmac @"strmac"  //路由器Mac地址
#define param_bssid @"BSSID"    //路由器Mac地址

#define param_user @"user"  //用户名
#define param_code @"code"  //验证码

#define param_tel @"tel"    //手机号

#define param_token @"token"    //请求上网放行的Token
#define param_strguid @"strguid"    //请求上的用户表示

#define param_lng @"lng"    //经度
#define param_lat @"lat"    //纬度
#define param_strGuid @"strGuid"    //用户设备标识

#define param_par @"par"    //ssid，批量则用半角逗号分割

//订阅号绑定的微信第三方开发者
#define WXAppID @"wx546686929c574b69"
#define WXAppSecret @"f17918a9d69d3795135e33435797e499"

//蒲公英APPID
#define PgyerAPPID @"75db216e6bfb883af945ce1189176bed"

#define Treebear @"Treebear"    //树熊设备AP标识
#define SundRay @"SundRay"    //信锐设备AP标识

//宽高
#define kTopBarHeight       20
#define ScreenW        [[UIScreen mainScreen] bounds].size.width
#define ScreenH       [[UIScreen mainScreen] bounds].size.height
#define kNavBarHeight       self.navigationController.navigationBar.frame.size.height
#define kMainHeight         (kScreenHeight - kNavBarHeight - kTopBarHeight)
#define kSelfWidth          self.bounds.size.width
#define kSelfHeight         self.bounds.size.height
#define kSelfViewWidth      self.view.bounds.size.width
#define kSelfViewHeight     self.view.bounds.size.height

//颜色
#define kColorWhite         [UIColor whiteColor]
#define kColorBlue          [UIColor hexColor:@"0000ff"]
#define kColorBlack         [UIColor hexColor:@"000000"]
#define kColorRed           [UIColor hexColor:@"ff0000"]
#define kColorFont          [UIColor hexColor:@"1a1a1a"]
#define kColorBackgound     [UIColor hexColor:@"1A7335"]    //9a0000  316A42
#define kColorUnderline     [UIColor hexColor:@"e1e1e1"]
#define kColorGreed         [UIColor hexColor:@"8FC31F"]

//项目的主要色调
#define kColorMainOrange    [UIColor hexColor:@"ff7419"]
#define kColorMainRed       [UIColor hexColor:@"ee0000"]
#define kColorMainBlack     [UIColor hexColor:@"323232"]
#define kColorMainGrey      [UIColor hexColor:@"6a6a6a"]
#define kColorMainBorderGrey [UIColor hexColor:@"a1a1a1"]

//极光推送消息通知
#define GetNotificationMessage @"GetNotificationMessage"

//微信支付通知
#define GETWXPAYRESULT @"GetWXPayResultNotification"

//保存的搜索历史记录的Key
#define SearchHistoryKey @"SearchHistoryArray"

//自定义错误提供给NSError使用
#define kCustomErrorDomain @"com.jmzjt.yxtb2b"
typedef enum {
    eCustomErrorCodeFailure = 0
} eCustomErrorCode;

#if 1
#define NSLog(...) NSLog(__VA_ARGS__)
#define debugMethod() NSLog(@"%s", __func__)
#else
#define NSLog(...)
#define debugMethod()
#endif

